package com.bwie.goods.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.math.BigDecimal;
import java.io.Serializable;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

/**
 * 
 * 
 * @author HouDing
 * @email 1398853436@qq.com
 * @date 2022-02-22 19:41:40
 */
@Data
@TableName("miaosha_order_info")
public class OrderInfoEntity implements Serializable {
	private static final long serialVersionUID = 1L;
	/**
	 * 
	 */
	@TableId
	private Long id;
	/**
	 * 用户id
	 */
	private Long userId;
	//订单id
	private String orderno;
	/**
	 * 商品id
	 */
	private Long goodsId;
	/**
	 * 收获地址id
	 */
	private Long deliveryAddrId;
	/**
	 * 冗余过来的商品名称
	 */
	private String goodsName;
	/**
	 * 商品数量
	 */
	private Integer goodsCount;
	/**
	 * 商品单价
	 */
	private BigDecimal goodsPrice;
	/**
	 * 1.pc 2.android 3.ios
	 */
	private Integer goodsChannel;
	/**
	 * 订单状态：0新建未支付，1已支付，2已发货，3已收货，4已退款，5已完成
	 */
	private Integer status;
	/**
	 * 订单创建时间
	 */
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GTM+8")
	private Date createDate;
	/**
	 * 支付时间
	 */
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GTM+8")
	private Date payDate;
	@TableField(exist = false)
	private BigDecimal miaoshaPrice;
}
